<?php
/* @var $this SubareaController */
/* @var $model Subarea */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'subarea-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textField($model,'companyid'); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>10, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'adds'); ?>
		<?php echo $form->textField($model,'adds',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'adds'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'hotline'); ?>
		<?php echo $form->textField($model,'hotline',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'hotline'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'evaluation'); ?>
		<?php echo $form->textField($model,'evaluation'); ?>
		<?php echo $form->error($model,'evaluation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'percost'); ?>
		<?php echo $form->textField($model,'percost'); ?>
		<?php echo $form->error($model,'percost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lat'); ?>
		<?php echo $form->textField($model,'lat'); ?>
		<?php echo $form->error($model,'lat'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lng'); ?>
		<?php echo $form->textField($model,'lng'); ?>
		<?php echo $form->error($model,'lng'); ?>
	</div>

	
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->